﻿using System;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace PrisonStep
{
    class ProjectileTrailParticleSystem : ParticleSystem
    {
        public ProjectileTrailParticleSystem(Game aGame, ContentManager aContent)
            : base(aGame, aContent)
        {
        }

        protected override void InitializeSettings()
        {
            TextureName = "smoke";
            mMaxParticles = 1000;
            mDuration = TimeSpan.FromSeconds(3);
            mDurationRandomness = 1.5f;
            mEmitterVelocitySensitivity = 0.1f;
            mMinHorizontalVelocity = 0;
            mMaxHorizontalVelocity = 1;
            mMinVerticalVelocity = -1;
            mMaxVerticleVelocity = 1;

            MinColor = new Color(64, 94, 128, 255);
            MaxColor = new Color(255, 255, 255, 128);

            mMinRotateSpeed = -4;
            mMaxRotateSpeed = 4;

            mMinStartSize = 1;
            mMaxStartSize = 3;

            mMinEndSize = 4;
            mMaxStartSize = 11;
        }
    }
}
